Skip to content

Comments

Fix missing update notification in tools view#70

Merged
clajiness merged 4 commits intomainfrom
fix-missing-update-notification-in-tools-view
Jan 30, 2026
Merged

Fix missing update notification in tools view#70
clajiness merged 4 commits intomainfrom
fix-missing-update-notification-in-tools-view

Conversation

@clajiness
Copy link
Owner

This pull request introduces improved theme support for the application's UI, specifically by adding separate light and dark mode favicon and manifest assets, and updating the layout to dynamically select the correct assets based on the UI mode. Additionally, it cleans up and simplifies the code that sets update notification variables in the web framework, and updates documentation for clarity. The application version is also incremented.

Theme support and asset management:

  • Updated views/layout.erb to dynamically select light or dark mode favicon and manifest assets based on the current UI mode, including separate icons and manifest files for each theme.
  • Added new manifest files for light and dark modes: public/images/light/site.webmanifest and public/images/dark/site.webmanifest. [1] [2]
  • Removed the old, single site.webmanifest file in favor of theme-specific manifests.
  • Updated the logo reference in README.md to use the light mode logo asset.

Web framework improvements:

  • Refactored framework/web.rb to set update notification variables (@recent_tag, @update_available) in a before filter instead of repeating code in every route, simplifying route handlers. [1] [2] [3] [4]

Documentation:

  • Improved installation instructions in README.md for clarity and added additional context on environment variables.

Version bump:

  • Incremented application version from v2.5.1 to v2.5.2.

Introduces separate favicon and manifest files for light and dark modes, updating the layout to use media queries for color scheme detection. Refactors image organization, updates README references, and removes redundant code in web.rb. Bumps version to v2.5.2.
Add media=(prefers-color-scheme) attributes to favicon links so browsers pick light/dark icon variants; update dark and light favicon image assets (PNG, ICO, SVG) and remove the old generic /images/favicon.ico. The dark favicon SVG had its solid background rect removed (making it transparent), and layout.erb was adjusted to reference the themed icons. These changes enable proper favicons for light/dark modes and refresh the icon files.
Use the server-side ui_mode (Service::Helpers.env_variables[:ui_mode]) to choose theme stylesheet and favicons instead of relying on client prefers-color-scheme. Adds conditional includes for light/dark CSS and corresponding favicon/apple-touch/manifest assets, removes the previous media-based fallbacks, and adds a small comment for theme stylesheets. This ensures the served assets match the configured UI mode consistently.
Replace several dark-theme favicon assets (android-chrome 192/512, apple-touch-icon, favicon 16/32, .ico, and .svg) with updated versions. In favicon-dark.svg a background <rect> (48x48, rx/ry=2) was added to provide a consistent rounded background and improve visibility in the dark theme.
@clajiness clajiness self-assigned this Jan 30, 2026
@clajiness clajiness merged commit 9fb6d26 into main Jan 30, 2026
4 checks passed
@clajiness clajiness deleted the fix-missing-update-notification-in-tools-view branch January 30, 2026 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant